﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ToDictionary
{
    internal class Config
    {
        public string ConfigValue
        {
            get; set;
        }

        public Config(string config)
        {
            ConfigValue = config ?? string.Empty;
        }

        public override bool Equals(System.Object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return false;
            }

            // If parameter cannot be cast to Point return false.
            Config p = obj as Config;
            if ((Config)p == null)
            {
                return false;
            }

            // Return true if the fields match:
            return (ConfigValue.Equals( p.ConfigValue ) );
        }

    }
}
